package com.carp.springframework.bean;

import lombok.Data;

/**
 * @author lile
 * @date 2023/2/2
 */

@Data
public class UserService {

    private Integer id;
    private UserDao userDao;
    private String company;
    private String location;

    public void getUserInfo() {
        System.out.println("姓名：" + userDao.getUserNameById(id)
                + "，公司：" + company + "，地点：" + location);
    }

}
